<template>
	<div class="app">
		<h1>我是App组件</h1>
		<Child :agree="agree" :getCheckedStatus="getCheckedStatus"></Child>
	</div>
</template>

<script>
	import Child from './components/Child.vue'

	export default {
		name:'App',
		components:{Child},
		data() {
			return {
					agree:true
			}
		},
		methods: {
			getCheckedStatus(b){
				this.agree = b
			}
		},
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>